package com.jeasonzhao.model;

import com.jeasonzhao.commons.json.JSONClass;
import com.jeasonzhao.commons.xml.XMLNode;

//External model
public interface IExModelItem extends IModelItem
{
    public void afterInitializedFromXML(XMLNode nodeItem)
        throws ModelException;

    public void afterInitializedFromJSON(JSONClass nodeItem)
        throws ModelException;

    public void afterInitializedFromDatabase()
        throws ModelException;

    public void afterConvertToXML(XMLNode returnNode)
        throws ModelException;

    public void afterConvertToJSON(JSONClass returnNode)
        throws ModelException;

    public void normalizeModelItem()
        throws ModelException;
}
